﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using ForzaGT3.Data;
using JSM;

namespace ForzaGT3.Controllers
{
    public partial class SeriesController : Controller
    {
        //
        // GET: /Series/

        public virtual ActionResult Index()
        {
            IEnumerable<Series> data = Series.GetAll()
                .OrderBy(x=>x.StartDate);

            ViewData.Model = data;

            return View();
        }

        public virtual ActionResult Details(Guid Id)
        {
            Series data = Series.GetById(Id);
        
            return View(data);
        }

    }
}
